Fixed the logic for determining when to move on to the next section after PO.