Added err to callback from scanner