Changed startup class to use an array and loop.