Added a lot of functions and graphics.