Start of get_buf support in agent