Major fix to the runAmqp function, I derped hard on that one