Copied code from my "FileServer-Client" repo.