Added user-defined functions.