Make MAX_CHARACTERS configurable