Distributor

It's running now! Even managed to simplifie the code a bit.