Added textile mode support