Completed popMin method