Next works in while block