Added extract generation functionality.