First working version of statsd integration