Add stats and scheduler class