Changed Stack to Queue, so the commands come in the right order