How Goals and Plans Affect Action