Added hex calculation using sjcl