There is a createNestedList() already defined in another module. Is this copy&pasted? If so, head off :-)