Adds exists query
Merge commit 'b1094a3'