Faster evaluation algorithm