Add labels and rects read function