Add TimerTask to flush