Added dynamic lists code