Merged prefixEvaluate into evaluate function