These lines (and the userPrefFile variable) should all be in the "new code" section to make it clear that they're part of the new implementation.