Added switch for turning off logs