Added --state option to save/resume extraction