Added enc_buffer