Added quaternion integral