Change the order of arguments for handle_profiles(...).

Specifying the profile name first seems more logical.