Code to handle stale nodes added