Improved item transfer algorithm.