Added ability to set flate level