Separate Click definitions from actual functions called. This will allow to use the scripts without Click.