Reduced the number of times openBoard and buildIndex runs.