Add function definition