Implemented basic flocking.