The control of thought and action