Would be great to be able to supply callback that will return directory name.