Prefix search working and added addDefinitionNode