Command generation work