Added basic functions for preferences and configuration.