Extract data (not tested)