Fixed bug to wait longer if the outbound queues are backed up.