Add support for tangent.
Fix alpharef.