Added the code for inline sniffing. Still needs some work.