Added charcode generator