While-loops complete