Updated file to implement the two functions that were previously just shells.