Initial scripting, will now move into a branch