Added grid loop extension