Switched to built-in mouse functions