Added beforans, fixed some issues with grist.