Code refactor + added optional 'msg'.
Added get_input + get_command.