These two re-subs should be combined, there's no reason to scan and replace it twice for the same thing.