The code isn't too difficult! You could copy/paste what I have and just modify it, or let me know what you have in mind, and I can write up the code for you.
Thanks! I appreciate that, and I would take you up on the generous offer, but someone else saw the question, and got me the code. The moral of the story is that Elliquiy is full of wonderful people (like you) (and Geraint) who are willing to share their knowledge and help others.