Added simple plot function.