Calculation of final distribution, and switcher in predefined distributions.