Add behafiours for functions.