Added logging to stop template