Remove all inner loops; 1245 bytes