Group by a Fence