Added configuration options to specify publish/subscribe ports.