Add BigInteger support #597