Adjustments to flocking code