Fixing a "sh: bad number" when $offset is not passed to setup_loop().