Importance sampling work