Added automatic conversion between old codes and new.