Scheme to handle hex conversions.