Made the module traversal more intuitive by building an overall module list.