Put functions into an environment