Added the AA loop