Back to proper candidate fetching.
Just some restructuring.
Removed silly comment.
Fixed prefix handling and candidate retrieval.