Update and rename file to random