Added resetIdSequence, increaseQuantity and decreaseQuantity methods.