Changing file name from if-then to if-else.