You cover the pump inlet with some fine filter foam. Some people place the pump in a tupperware box with some holes in it, and surround the pump with filter foam to prevent debris (and I suppose eggs) from getting sucked in.