Implement replace sections.