Function definitions.