Added binary search options to ag.