Fixing problems with function definition
Fixing user function definition