Fix functions import; mgcv is no longer needed