Converting script to submodule