Change definition of function