Added gradient ascent kernel for testing things out.