Added support for root directory