Added while loop inspectio