Can now easily change heuristic of importance sampling