I havent delved into your script in detail and im not sure if its already implemented but would it be possible (or a good idea) to add a "sleep time" like sleep(25 to 50) for each item being screened during vendoring or salvaging? It may be able to combat the possible random lag issue people are having. Although It may add an additional 2-3 seconds during inventory check time (when your inventory is full) but that sure as hell beats sitting in pause for a few hours of being away from the computer.