Begin creating mode dict.