Add code for files extraction without gui