Write on patches and status
Initialize pointers, use payload structures