Move setup call
Setup periodic push of metrics to influx if configured
Move stats calls