Adding a check for "alwaysSave".