Performance improvements and mouse movement