Added function definition