Short term planning and long term planning