Added a way of setting whether the new object should be managed from Lua