Made RMQ connection get started only in the run method for easy testing - reformatted