Write specs using hex for compatibility