Added the beam profile integration.