What does this function do? As we add more code, probably useful to provide a description of each method.