Adding function definitions.