From Attention to Goal-Directed Behavior