Code for loading all profiles completed, but untested!