Renaming type to createType