Initial checkin, MaxRects code.