Added a base directory function.