Some work on the accelerator implementation.