Modifying a few regular expressions and adjusting array indices.