Added grads loading script (not documented yet).