Refactored sample.