Finally, a solution that works for my production line.