Added serial and mouse movement to main loop