Partial rewrite of placement logic