Addition of the get_click_function function.