Added SetState to Pipeline.