Some modifications to support BER plots