Removed outer loop. Not needed.