Add logging, make the flush interval tunable