Reintroduce mode to directory and manifest file.