Added separate blocking parameters for gradient routine