Removed autopublish & added publish & subsribe