Add trait in different file formats