First version of the patches extraction