Add script that gets highest rets-id from directory