If we move all the stuff above down here, we can avoid creating a params object every time.