Change publish method