I'm not sure how to set function properties inside function definition.