Used rDATA and input numbers to speedup RMD loading