Trying to make publish work