Yes, assuming that your objective is:
I just posted the complete macro with example main macro:
For more information, see the wiki Searching the Forum for Answers section.