Implementation of a simple accelerator.