First version of the extractor. Improvements needed ASAP.