Daemonized, Moved Node stuff to subroutine