Removed reliance on math/big. Much faster