Placement logic added