Starting to reorder loops