Do it like the AMQP gem