Add function definition and call