Added feature to pass the rotation vector.