Finished rewriting hub.go