Add forgotten local variable statement and documentation.