Add open mode to archive open