Sigh. Looks like we need a function after all; create a new function