Implementación inicial de la cola de comandos.
Changes to the command queue feature.

This commit adds the basic functionality but there are still some bugs that need to be ironed out.