Finally, looks like everything is working. Still need to add the option to avoid disfunctionning files