Multithreading support. Increased checks on the grant allocation.