Adding optional debug statements to the coral_create_resources function.