added flush delay