Loop variable referenced before assignment

Are you using compQ for something else as well?