Replace quantities with pint