Make accuracy calculation clearer