Remember in Star Trek: TNG when Data finds his creator Dr. Noonien Soong and the good doctor gives him an emotion chip?
Sometimes I think that Brian Giles has Khalil's emotion chip. When Giles gives him a big bear hug he plugs the chip and his emotions come alive.