Implemented plotting