Add a modFunc function to edit a function in the session.