Added option to rename file