Tweaking Query object