Add publish behaviour.