Adding in logic to flush responses.