Update functional.m