Support graphite in versions less than 5.x