Switches from algorithm names to enums for better platform independence.