Added custom functions.