Rename frameAndProcessed to frameAndGate, add little helper type.