Initial version, running with scanner