Final wrangle code