Split graphite stuff into seperate file