The aim of the project has been to integrate technology for measuring fibre angle and heartwood content into an equipment that measures both properties during transverse feed in the green sorting. The results show that technology based on laser and image analysis makes this possible. The project has also proved that it is possible to produce straighter lumber by sorting out the part that is most prone to skewness and put these boards in the bottom of the stack during drying. The results were very clear and when following up the results in the secondary processing, the yield was improved in both cross-cutting and planing. The next step should be to verify that the technology works also on spruce and to study the potential in combining measurement technology with improved drying technology. Key words: Fibre angel, spiral grain, Scots pine, heartwood, drying, skewness