Very simple function to extend functions.