Added code for inspection of internal structure