Replaced flashlight-client.go with clientFor function