Adds a script to poll stats.
Fix stat polling to not error.
Adds in server_opts.