Added support for multiple publish
Added -f (forever) repeating switch