Add state machine to posts