Made the hex code hash optional