Add function to periodically poll self
Change web to app
Make function inside main goroutine