Add logging to Node class