1. Added spannCounter for every unique processing
2. Added buildUrl function which will add params to a url