Simplified item selection code.