Implemented exitResponse and exitTemplate