Closure tweak: variable 'd' declared twice within the same method.