Built framework to allow ANSI mode to coexist with ASCII mode.