Altered more event handling code. Changed default deadzone value to 6000.