Auto threshold voltage level