Modified to delete all temporarily created files