[Carlos] Changed for loops to each blocks