Moving things out of the sketch to pure c++