Changed comparing function in accuracy module to lambda