Move z left shape to a state machine model.