Modified model_resource