Setting up hex to be used by codebin