Added pilot id check