Fixed depletion issues
test script