Changed all the glua specific constructs to normal lua