Changed way of renaming files