Add stats for rates, switch to on(data)
Add some TODOs for making sure we don't leak mem.