Task Planning and Prioritization