Edit by [Me] - replaced pre tags with [href://?node_id=17558#codetags|code] tags, to prevent distortion of site layout and allow code extraction.