CRF_anticipatory_gids function added