Better INDI gains and removed unused variable for flip