Added methods for updating inventory