Added code for initial publishing