One of my goals is to keep the template code as simple as possible. I'm glad that you've posted the modified code here though; this way, anyone can use it.