Added support for multiple publish