Added coloured text handling