Added the ability to control hooking ^C