Adding bytes written cb.
Defining typedef