Models now set the type attribute