Clean up code style.
Fix incorrect jump-specific check.
Clean up code style.
Remove event filtering code.
Remove some obsolete code.
Clean up code style.