Added key checking for private nodes