Adding code for ROI expansion