Moved functions for the characters to the module.