Quality control of timber