Changed the calculation of the relative agreement. Now is working with both scenarios