Fixed issue where success message prints after every file