Adding a gid struct to avoid passing both gids and dates all over the place.