Rename file and make some modifications