Use "let" instead of hanging a global method.