added max_sift flag to cap sifting times