Move fetchData() to controller, to speed up plugin usage in other contexts