Added change character function