Add "getcurrentstate" command
Add "gettimecode" command