Fix ticket 20 CEP create a variable for currentPhase