Added compatibility with characters.