Starting to work on recursive read-command function