The hex function is now exported.