Implement some basic archive functions.