Adding type when adding a resource.