Issue #44: using enum for operation state