Added mouse support and improved frame rate