Add more item utilities and fix setItem loop