Added directory type functions