Made agreement score computation more robust.