Moved portfolio container out of the loop.