Attempted conversion to allow console to execute commands