Fix compiler warnings
Implement Publish