Implement 2 phase estimation