First pass at the complete file changing code