Fix code to work properly with IronMQ