Going to try this again, make the lua code into a stand alone file