Added some graphical functions