Hello. I am calling a Python script called 'incrementCounter' from a DTML Document and passing a variable to it called 'counter'. However, for some reason the value of this variable remains unchanged when control returns to the DTML method. I tested the Python script independently via the management interface and it works fine. The code for both the document and script is listed below. Any help would be greatly appreciated. Thanks. <dtml-call "REQUEST.set('rowLength', 6)"> <dtml-call "REQUEST.set('counter', 0)" > <dtml-in expr="aq_parent.objectValues(['Local File System'])" prefix="fileObject" sort="id" skip_unauthorized> <dtml-if "AUTHENTICATED_USER.has_role(['Local', 'Manager'], this())"> <a href ="/Personal/<dtml-var "getId()">">#<dtml-var "getId()"></a> <dtml-call expr="incrementRowLength(counter)" --> <dtml-var counter> </dtml-if> </dtml-in> increment = 1 counter = int(counter) + int(increment) return counter __________________________________________________ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com