Finished distributed query class implementation!