Added an option for turning off recording