Add cache for get_candidate() and some bugfix
Debugging commit