Added mouse functionality.