End of controller