Added GetRect() function