Added support for custom characters and change the way characters are printed.