Code used for USCorners and other experiments