Forward-Looking Behavior and the Optimality of the Taylor Rule