Fixed bug in timeout code. Added BER dumper.