Added code to save the newly created character.