Add type to closure parameters for archiving artifacts