Added support for GMP arithmetic