Spec for functions.