Removed junk code, edited mouse handler.