Wrapper script for scanner