Added BZRFlag queries to socket code