Replace ticker with pubsub