Change resource extraction logic.