Changed if to while