A patient in India who reportedly went to the doctor complaining of persistent buzzing in his ear was diagnosed with aural myasis, a condition caused by fly larvae infesting in a person’s ear or nose.

Dr. Vikram Yadav, the attending doctor, proceeded to remove hundreds of live maggots from his unidentified patient’s ear, according to HNGN.com.

Yadav believes house flies likely invaded his patient’s ear and laid eggs while he was sleeping.

“If anybody sleeps, a child, an old person, and you see any houseflies there, put some cloth on their face so they don’t enter into the orifices and lay their eggs,” Yadav told HNGN.com. “Prevention is better.”

The condition could have turned deadly, as the maggots were feeding off the patient’s flesh and could be seen moving around. Yadav recorded the procedure on camera.