State machine task added