Fix visibility for main script function
~~~