More work on visualization functions.