Add support for quaternion