Add an assertion to confirm profile_name is properly passed through.