Fix bug introduced by satyam by deleting for loops.