Most of the code is in place now for graph preview.