1. Updated to call the service and wait for it to finish and then
populate the Profiles variable in scope using a callback