Implement #scan operation