Scanner script