Finally figured out some weird hack to retrieve data from rects