Could be `status.state = (Queued | Generating | Generated)` rather than two booleans. Removes the strange state (stats.generating = true, status.generated = true) and makes the state machine a bit clearer. Up to you.