Collecting busy SM IDs

OK Thank you very much.
I also found an answer to the first question with an example in this page