added parameter outputAccuracy to allow disabling accuracy computation