Fixing contemporaneous sampling implementation.