Began to externalized commandsFrame to use it for players