Add a struct for register type