Added a prune option