Changed to allow command line rate input topic and output topic