Started writing a grid search implementation.