Simple generation and consumption logic.