Remove inner loop