Add a function getting error number
Add callback interface
Ignore autoscan output files