Adding killswitch and initialization debug.