Started adding graph functions.