Added options.amd as a function