Added tabname and winname functions.