Added ability to do DISTINCT statements.