Creating a new mechanism of getting the urls for the reports.

Fixing some minor bugs to help with the port.