CORE code for analysis loopers