Adding an exact sampling for testing