Added support for complex numbers.