Added sync publish option