Extension of a function