Initial evaluation function.