Added if statement to create_resources.