Added 'basePath' and 'autoExtension' options