This doesn't need to be a spy, it can just be a function.