Adding function function.