This is only ever executed here. Do we really need the separate function?