Modified some beamforming-type scripts.