GRBs related code