Adding recursive merging/writing and setting