Making gcnhub use select() instead of threading