Add timer and timeout functions
Add node state var