Command generator