Added -mine option to extract pass (not finished)