Changed syntax and fixed mouse bug.