You may find some help in this macro......
also for debugging, move each of the params(4) to a set of values (4) as result may not be what you were expecting.
For more information, see the wiki Searching the Forum for Answers section.