Work in progress code for data preview.