Added two functions to the file