Start migrating functions to new script format

Got it working again :dancer:
Merge pull request #2 from FOS-Games/Larster-Branch

Start migrating functions to new script format