Changed back to while loop - more effecient