Moved a function outside of a loop.
Updated the build with the latest lint fixes.