Fixed batch extraction. Still needs to be multithreaded and report progress though.