Some code added for character creation