Execute search tasks from GUI.

+ Small code small beautifications.