Added transferring of parameter on doubly query