Adding User defined functions