Added the main for-loop into transit.