Some improvement in Nodetype class.