Added a print statement to avoid the empty file.