Properly handle the 3 possibilities for placing result items