In some saw mill applications, where high-quality lumber is to be sorted and shipped, it is necessary to remove defects, such as knots, checks, or other imperfections, from the boards and to optimize and cut clear lumber according to a bill of materials.