Added basic main loop to debug the file_do thing