Changed operations to enumeration type