Updated for older RabbitMQ versions