Final changes before removing file