Update Protocols.lua

added variable wait based off file size