Added getaddresstype, getclientstate and renamebot.