Add type information to functions.