Add formatting functions