Refactoring ad hoc scan methods.