Refactor peek.