Added enum for checking phase states