Code cleanup.

Still no realtime reports. Maybe this script is talking to an old API?