This is mostly duplicated from the statement above. You can avoid this by assigning TopLeft and BottomRight variables based on the count, and then do this once.