Simplified code to use a single placement test.