AR loop setup