Add security for inventory size