Combined blocking and non-blocking data fetching into one method.