Added a checkClick function on Functions class.