Added mouseClick function.