Added timeouts to requests to prevent indefinite freezing.