Unit.lua completed, but will crash on Unit.deploy() (and other functions), so needs to be changed