Move this local function in where we have scribe available