Changed the enum to a dict.