Added importance sampling