Restrict function types.