Thanks to another community member's help, I was able to get a new variation adjusted. Read my post above to understand what this variation does.
local storageBase = 9000000
local actionId = 4330
local action = Action()
function action.onUse(player, chest, fromPos, target, toPos, isHotkey)...