Getting the publish working