Implement Functions.