Trying to get publish to work