Use the command queue and main loop