Shortened code for loading profile.