Pack the structs