Added the option 'appDir'