Adapted to queq and exchange config
Adapted to queq and exchange config