Working on loading preferences from file.