Completed eval function.