Fixing accumulator clear bug and adding performance test