Small refactory node code.