Solving Owen's fence panel problem.