Added minimum flow detection back in