Quick fix for function definition