Few changes
Added quitChecker