Modulize script