Modified code to allow creation of any static object, even if not on def file