Not clear why you are indexing ```output_containers```. Could you add a proper comment?