Added method for fast adding confines in queries