Added mouse capturing.