Make the duration of housekeeping flag configurable.