Made wait-for-qif remove all old queries