Added loop for item registration