Updated the threaded evaluation function.