Changed range type to enum.