Implement builtin functions