Added simple error checking for evaluate kernel