Rework motif in various file formats