Is this one question or two? I am ok with having a named function for clarity in debugging.