Planning for pupil engagement