Added two functions to get maps and rules from a report.