Fixed issue where directory and domain parameters were ignored.