Add flush mode. Check readme for detail.