Stripping down getProfiles.
Removed property left in by accident.
Stripping out more code.
Ensuring scope is maintained.
Removed display of secret.
Re-enabled for loop.