[BUGFIX] Treat src argument as array, fix missing argument, fix variable naming