We won't need this function and the one below if we consolidate them into the functions above.