Add configuration of archivers; refactor the code