Added initial scanner functionality.