Calculate normalizer out of the loop.
Calculate normalizer out of the loop.