Make flush interval configurable