Added auto flush to dispatcher