Removed references to t_buf_pos -- replaced with size_t