How to implement flow optimization for oil flow meters?