Add cases to check candidates after certain fields
Revise prefix and candidate logics