Beginning work on generic plot function.