Added pseudo-enum to represent the state