Added a click() function