Added separate functions for executing code in Script01 and Script04
Added stand-alone functions