Added functions and debugging for issue where we distribute evenly