Removing references to unused files