Modified standardize_data