Added support for quaternions.