Implements the limit argument for queries, #14