Added a couple of needed functions with rectangles.