Added Rect functionality