agdrift toolbox multiple input implementation