Cleaned up applysettings