Patent ID: 8905130

Claim:
An apparatus, comprising: a downhole tool having a body including a plurality of packers and a plurality of ports between the ones of the plurality packers, the plurality of packers and the plurality of ports spaced along a longitudinal axis of the body; a controller to obtain a density of a formation fluid and, based on the density, determine a direction to pump the formation fluid relative to a borehole interval defined by ones of the plurality of packers; a first pump located uphole relative to the plurality of packers; a second pump located downhole relative to the plurality of packers; and a flowline simultaneously fluidly coupled to at least two of the plurality of ports that are each positioned in the borehole interval, wherein: the first and second pumps are selectively fluidly coupled to the flowline; the controller is operable to operate the first pump to pump the formation fluid through the flowline in an uphole direction when the obtained density of the formation fluid is greater than a density of a wellbore fluid in the borehole interval; and the controller is operable to operate the second pump to pump the formation fluid through the flowline in a downhole direction when the obtained density of the formation fluid is less than the density of the wellbore fluid in the borehole interval.