Tried to improve upon hexToUber()