Changes to allow virtual directories.