Implement default preferences
Merge pull request #3850 from Snuffleupagus/preferences

Implement default preferences