ANSIfy function defintions.