Offload rrdtool calls and model to separate module