Multithreading support. Increased checks on the grant allocation.
Hash per second implemented
Merge branch 'multithread'