added while loops to the Manager's run