Add graphite connection code, parts of.