Added HexFunction.