Add scan

Fixes #142