Yes, that is why I made it a method - it seems that all other barclamps use the same piece of code as well :)