Add configurable lifetime to publisher