Changes implementing reorganzeFile().