Combined structure.lua's multiple constructors into one