Made the nobend beamline smarter