WIP on publishing.
This should finally work.