Added getCharacter function