Added distributions and matching in beams module.