Moved lines inside return function to fix readBlackboard.