Format functions automagically.