Add auto-pruning. #99