Added finish to query complexity