Added upload-keys function.