Removed use of nonstandard 'let'.