Initializing result data structure in case thread doesn't get to run