REIXS: Changed the order of when the action starts for beam on/off.