Add analysis stage to planning