Loop over NumberOfBeams