Added inspect funtion.