Added publish method