Wrote new algorithm for placement.