Planning and control in technology enhanced learning environments.