Add extract archive function