Added directory support.