Humans are adept at setting goals and updating them as new situations arise — for example, a person who is playing a video game may switch to a new goal when their phone rings. Now, researchers have identified mechanisms that govern how the brain incorporates information about new situations into our existing goals.