Refactored the Evaluate function to accept only one parameter