Starting work on ber encoder.