Function definitions working now.