Add configs and functions.