Code for BreakBeam