     # We require calling on subclass for now.
     throw new Error "Not supported." if @ is Job
 
-    query = @_constructQuery()
+    query = @_constructQuery data
     @find query, options
 
   # This query limits the results only to documents of the same type. So "Job.findDataOne" will not return

    query = values '', data
    query.type = @type()

  # Raw query, without assuring that the resulting document is of the same type.
  # TODO: Implement that if it is called on a subclass that it limits the query only to that type.
  @find: (query={}, options={}) ->

    # We require calling on subclass for now.
    throw new Error "Not supported." if @ is Job

    query = @_constructQuery data
    @findOne query, options

  @exists: (data, includingCompleted) ->
