Added basic Scan function and supporting test.