Add functools wrapper for correct function metadata processing.