Moved create_superlevels to correct place in loop