Prevent the oil from splattering during pan-frying by ensuring the heat stays at medium.