Restoring settings after application restart.