Changed the success calculation method