Use the min library