public void CreateUser()
    {
        // Check that all data has been set.
        if (dataSet < 13)
        {
            logManager.DisplayInformationOnLog(3.0f, "Not all user information has been set.");
        }
        else if (!userTypeSet)
        {
            logManager.DisplayInformationOnLog(3.0f, "Choose a valid user type.");
        }
        else
        {
            // Generate user ID
            //string userID = userData.name.ToCharArray()[0].ToString() + userData.familyName.ToCharArray()[0].ToString() + userData.yearOfBirth.ToString();
            //userData.id = userID;
            userData.GenerateUserID();

            // Create new user.
            try
            {
                SaveSystem.CreateNewUser(userData);

                // Create a all avatars.
                AvatarSystem.CreateAvatarCustomizationData(userData.id, AvatarType.AbleBodied, "ResidualLimbUpperDefault", "UpperSocketDefault", "ElbowCustom", "ForearmCustom", "ACESHand");
                AvatarSystem.CreateAvatarCustomizationData(userData.id, AvatarType.Transhumeral, "ResidualLimbUpperDefault", "UpperSocketDefault", "ElbowCustom", "ForearmCustom", "ACESHand");
                AvatarSystem.CreateAvatarCustomizationData(userData.id, AvatarType.Transradial, "ResidualLimbLowerDefault", "LowerSocketDefault", "ElbowCustom", "ForearmCustom", "ACESHand");

                // Return to main menu
                experimentMenu.GetComponent <MainMenu>().createdUser = true;
                ReturnToExperimentMenu();
            }
            catch (Exception e)
            {
                logManager.DisplayInformationOnLog(3.0f, e.Message);
            }
        }
    }