Add applyCohesion Function