Added a way to flush in production