Added main while