Add functions to retrieve keys from a file.