Switched to Enum for Algorithms