Draft of error rate computation