Move container var outside of loop.