Added mouse functionality