Added more code to the trying to remove from invent.