*** Before replace actions with states ***