More intelligent item handling