Updated StatsScheduler to use a separate port