Added SAP Router Error count field
Code cleanup, reduced scope of some variables