Added error handling for when item is not found.