Sample refactor.