Plan Generation in a Temporal Frame