Replacing just relevant sections