Only write source dictionary on change
Correct indentation