BER length encoding implemented