Added missing removeNode function