Most frequently, X-ray and metal detection are used on final packaged product, or very close to the packaging step, in order to be at the last possible point for checking for foreign material prior to going to the consumer.
Many processors, though, such as OSI Group, in Aurora, Ill., have established multiple hurdles to prevent and detect foreign material within their product streams.