Write default functions.