Added state file so the app survives node restarts