Add function to function definition