I updated the code with a little commented description on what the parameters mean.
You only need to put the code into a bmx and include it or even just put it into one of your existing BMX files.
You only need to put the code into a bmx and include it or even just put it into one of your existing BMX files.