Implement distributor function