Introduced a base directory parameter for the application context