Refactored calculation of success/failure.
Added approval/rejected counts.