Added trace statements to check for multiple values.
Displayed percentage error.