Working GetHistoryTask, refactored controllers