Added callbacks to buf_chunk in TY_MEM mode