Removed logging from query.