Fix: use 'local', not 'let', for variables