Added function for setting response mode to main class