Extensions for rectangles.