Fixes distribute
Removes commented code