Changed min function to pop as this more accurately describes the
operation.

Signed-off-by: Nigel <Nigel@10.203.4.182>