Small bugfix - missing factory arguments

Amd loading mode was missing factory arguments.
Merge pull request #2 from kshishkin/master

Small bugfix - missing factory arguments