Thanks for the explanation. I've copied and pasted it as notes in the code for use in later projects