Multiple updates

Mostly added new commands. Fixed some bugs related to client queue querying.