Got rid of nested loops