Added mouse code