Redone the create elements loop.