Added loop to list programs.