Add new functions because of new logic for Manager.addFile().