If first function has no summary, try next function; Add logging