Fixed #40. Pre-process FOIs in hypergeom4