Added own plotting function.